//
//  MineView.m
//  A段项目
//
//  Created by ～whc on 15-6-20.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MineView.h"
#define MineWidth 30
#define MineHeigth 10

@implementation MineView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createMine];
    }
    return self;
}

- (void)createMine
{
    UIImageView *allImagView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    allImagView.image = [UIImage imageNamed:@"splash_view03.png"];
    [self addSubview:allImagView];
    
    UIImageView *mineImageView = [[UIImageView alloc] initWithFrame:CGRectMake(4 * MineWidth + 2 * MineHeigth, 3 * MineHeigth, self.frame.size.width / 2 - 3 * MineWidth  , self.frame.size.height -  6 * MineHeigth)];
    [mineImageView setBackgroundColor:[UIColor clearColor]];
    mineImageView.image = [UIImage imageNamed:@"headnew05.png"];
    [allImagView addSubview:mineImageView];
    
//    UIButton *enterButton = [[UIButton alloc] initWithFrame:CGRectMake(mineImageView.frame.origin.x + mineImageView.frame.size.width + MineWidth, self.frame.size.height / 2 - 2 * MineHeigth, 3 * MineWidth, 4 * MineHeigth)];
//    [enterButton setBackgroundColor:[UIColor clearColor]];
//    [enterButton setTitle:@"登录" forState:UIControlStateNormal];
//    [enterButton setBackgroundImage:[UIImage imageNamed:@"btn_solid_blue_h90.9.png"] forState:UIControlStateNormal];
//    [enterButton addTarget:self action:@selector(enterButtonAction:) forControlEvents:UIControlEventTouchUpInside];
//    [self addSubview:enterButton];
//    
//    UIButton *registerButton = [[UIButton alloc] initWithFrame:CGRectMake(enterButton.frame.origin.x + enterButton.frame.size.width + MineWidth, self.frame.size.height / 2 - 20, 3 * MineWidth, 4 * MineHeigth)];
//    [registerButton setBackgroundColor:[UIColor clearColor]];
//    [registerButton setTitle:@"注册" forState:UIControlStateNormal];
//    [registerButton setBackgroundImage:[UIImage imageNamed:@"btn_solid_gray_h76.9.png"] forState:UIControlStateNormal];
//    [registerButton addTarget:self action:@selector(registerButtonAction:) forControlEvents:UIControlEventTouchUpInside];
//    [self addSubview:registerButton];
}

//- (void)enterButtonAction:(UIButton *)enterButton
//{
//    [self.enterDelegate presentEnter];
//}
//- (void)registerButtonAction:(UIButton *)registerButton
//{
//    [self.registerDelegate presentRegister];
//}









@end
